package com.xuyu.ddd.aggregate.demo.model;


import com.xuyu.ddd.aggregate.core.field.LazyAndPersistence;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@Accessors(chain = true)
public class Order implements Serializable {

    private Integer id;
    private Customer customer;
    private OrderStatus orderStatus;
    private BigDecimal totalPrice;
    private LazyAndPersistence<Customer> lazyCustomer;
    private LazyAndPersistence<OrderStatus> lazyOrderStatus;
}
